package com.wxj.bank.module.modle.criteria;

/**
 * @author shengtao
 * @Description: 排序对象
 * @date 2019/02/01 16:17
 */
public class OrderBy {

    private String field;

    private boolean isAsc;

    private OrderBy(){}

    public OrderBy(String field) {
        this.field = field;
        this.isAsc = true;
    }

    public OrderBy(String field, boolean isAsc) {
        this.field = field;
        this.isAsc = isAsc;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public boolean isAsc() {
        return isAsc;
    }

    public void setAsc(boolean asc) {
        isAsc = asc;
    }
}
